package com.service;

import com.mapper.RoleDao;
import com.mapper.RoleDaoImpl;
import com.pojo.Role;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Connection;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService{

	@Resource
	private RoleDao roleDao;
	
	@Override
	public List<Role> getRoleList() {
		List<Role> roleList = null;
		try {
			roleList = roleDao.getRoleList();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return roleList;
	}
}
